#ifndef __UTILS_H_
#define __UTILS_H_

#define NET_DIR "/etc/conf/"
#define NET_CONF "/etc/conf/net.conf"

enum RET_CODE
{
    FAILED = -1,
    SUCCESS
};

enum FILE_TYPE
{
    TYPE_DIR,
    TYPE_FILE
};

const char* get_local_ip(const char* ethname);
int check_dir_or_file(const char* path, int type);
int set_ip_or_gateway_to_conf(const char* ipstr,const char *setsrc);

#endif